import request from '@/utils/request'
// 获取列表
export function getList(params) {
  return request({
    url: '/goods/list',
    method: 'get',
    params
  })
}
// 新建商品
export function goodsCreate(data) {
  return request({
    url: '/goods/createGoods',
    method: 'post',
    data
  })
}
// 删除商品
export function goodsDelete(id) {
  return request({
    url: `/goods/removeGoods/${id} `,
    method: 'post'
  })
}
// 查询商品
export function findGoods(id) {
  return request({
    url: `/goods/findGoods/${id} `,
    method: 'get'
  })
}
// 修改商品
export function updateGoods(id, data) {
  return request({
    url: `/goods/updateGoods/${id} `,
    method: 'post',
    data
  })
}

// 修改商品状态
export function editGoodStatus(id, data) {
  return request({
    url: `/goods/editStatus/${id} `,
    method: 'post',
    data
  })
}

// dd
